package org.jeecg.modules.friends.controller;

import org.jeecg.modules.friends.base.HttpReturn;
import org.jeecg.modules.friends.service.impl.LCD;
import org.jeecg.modules.friends.service.req.DicReq;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import lombok.extern.slf4j.Slf4j;

/**
 * Created on 2025-05-20
 */
@Slf4j
@RestController
@RequestMapping("/common/")
public class DicCommonController {
    @RequestMapping(value = "info", method = RequestMethod.GET)
    public HttpReturn<String> info(DicReq dicReq, @RequestHeader(name = "token", required = false) String token) {
        return HttpReturn.successResult(LCD.getContentDefault(dicReq.getType(), ""));
    }
}
